home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 14 - Useful Commands (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 14 - Useful Commands (19xx)(Topik Public Domain)(PD)[WB].adf / C / Undelete.doc < prev    next >
Text File  |  1989-08-07  |  2KB  |  71 lines

  1.  
  2. *** TOPIK Note : The C Source file can alse be found in this directory,
  3. called undelete.c !!
  4.  
  5.  
  6.  
  7.  
  8.                        NOTES ON UNDELETE
  9.  
  10. Well, what do you want for nothing...it works!
  11.  
  12. This was probably my first finished program in C for the Amiga, back in
  13. 1986.  I was frustrated by typing "delete #?.bas" when I meant to type
  14. "delete #?.bak".  I lost a couple of programs I have never tried to
  15. regenerate.
  16.  
  17. Oh, well, here's the description.
  18.  
  19. Undelete will allow you to recover deleted files from a 3.5" diskette,
  20. as long as you haven't overwritten them, and will save those files on
  21. another diskette or to ramdisk. It recovers files ONLY from disks
  22. placed in drive 0 (it asks you to insert the disk).
  23.  
  24.   It does not work from Workbench. Use it only from CLI. Following
  25. is a typical command line, which assumes that UNDELETE is in RAM:
  26.  
  27.     1> ram:undelete lost_file ram:
  28.            /            |         \
  29.  execute program   Name of          The destination of recovered
  30.                    deleted file.    file.
  31.  
  32.   A couple of warnings:
  33.  
  34.     1. Do NOT include DF0: or the directory layers to the lost
  35. file. The following command will FAIL:
  36.  
  37.     1> ram:undelete df0:mydir/lost_file
  38.  
  39.     No matter how deeply the file was nested in directories, give
  40. ONLY its filename, not the directory path or drive number. For
  41. example, assume you deleted file "df0:test/moretests/myfile." Get
  42. it back with the command below (again assuming UNDELETE is in
  43. RAM) and you want the recovered file sent to RAM:
  44.  
  45.     1> ram:undelete myfile ram:
  46.  
  47.     2. Do NOT attempt to give it a filename at destination! (such
  48. as ram:got_it_back). The program re-creates the file at the
  49. destination under its original filename, PLUS the block number
  50. where it started (essential if there were two deleted files of
  51. the same name!).
  52.  
  53. Limitations:
  54.         You must enter the name exactly as it was spelled originally,
  55.         though case doesn't matter.
  56.         It will only read from the internal 3.5" drive.
  57.         It sometimes won't find your file anyway.
  58.  
  59. Future Enhancements:
  60.         Read from any drive (including DH0:?)
  61.         Allow user to choose file to recover by point-and-click, or
  62.         maybe Soundex (Ambitious!), or just partial spelling.
  63.         ???
  64.  
  65. I would have added more features a long time ago, but I honestly did not
  66. know anyone was using this program, so if no one says anything about it,
  67. it may be another two years before I work on it again.
  68.  
  69. Use it in good health.
  70.         -jec
  71.